import Vue from 'vue'
import App from './App.vue'
import router from './router'
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import store from '../store/store.js'

Vue.config.productionTip = false;
Vue.use(Element);

import axios from 'axios'
axios.defaults.withCredentials=true;//让ajax携带cookie
Vue.prototype.$axios = axios;
import cookies from 'vue-cookies'//vue操作cookie
Vue.prototype.$cookies = cookies;

// 引入echarts
const echarts = require('echarts');
Vue.prototype.$echarts = echarts

document.body.parentNode.lang = "zh-cn"

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

